<div class="form-inline">
    <div class="well">
        <?php
        /** @var CategoriaController $this */
        /** @var Categoria $model */
        /** @var AweActiveForm $form */
        $form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
            'type' => 'horizontal',
            'id' => 'categoria-form',
            'enableAjaxValidation' => false,
            'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false,),
            'enableClientValidation' => true,
        ));
        ?>




        <div class="row-fluid">
            <div class="span12">
                <?php echo $form->textFieldRow($model, 'descripcion', array('maxlength' => 45)) ?>
            </div>

            <div class="row-fluid">
                <?php echo $form->dropDownListRow($model, 'articulo_id', array('' => ' -- Seleccione -- ') + CHtml::listData(TipoArticulo::model()->findAll(), 'id', TipoArticulo::representingColumn())) ?>
            </div>

        </div>
        <center>
            <div class="span12">
                <?php
                $this->widget('bootstrap.widgets.TbButton', array(
                    'buttonType' => 'submit',
                    'type' => 'primary',
                    'label' => $model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save'),
                ));
                ?>
                <?php
                $this->widget('bootstrap.widgets.TbButton', array(
                    //'buttonType'=>'submit',
                    'label' => Yii::t('AweCrud.app', 'Cancel'),
                    'htmlOptions' => array('onclick' => 'javascript:history.go(-1)')
                ));
                ?>
            </div>

            <?php $this->endWidget(); ?>
        </center>
    </div>
</div>